import React, { useState, useEffect } from 'react';
import { Modal } from 'antd';

const GModal = ({ children, bodyStyle, okButtonProps, cancelButtonProps, ...restProps }) => {
  return (
    <Modal
      bodyStyle={{ minHeight: '300px', ...bodyStyle }}
      okButtonProps={{ ...okButtonProps }}
      cancelButtonProps={{ type: 'link', style: { color: '#808694' }, ...cancelButtonProps }}
      {...restProps}>
      {children}
    </Modal>
  );
};

export default GModal;